package com.leyou.item.inter.pojo;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @数表名称 tb_spec_param
 * @开发日期 2020-03-07
 */
@Data
@Table(name="tb_spec_param")
@ApiModel(value = "SpecParam",description = "结果类")
public class SpecParam implements Serializable {
    
    /** 主键 (主健ID) */
    @Id
    @Column(name="id")
    @ApiModelProperty(value = "规格租参数id", name = "id")
    private Long id;

    /** 商品分类id */
    @Column(name="cid")
    @ApiModelProperty(value = "品牌id", name = "id")
    private Long cid;

    /** 规格id */
    @Column(name="group_id")
    @ApiModelProperty(value = "规格id", name = "groupId")
    private Long groupId;

    /** 参数名 */
    @Column(name="name")
    @ApiModelProperty(value = "品牌id", name = "name")
    private String name;

    /** 是否是数字类型参数，true或false */
    @Column(name="is_numeric")
    @ApiModelProperty(value = "是否是数字类型参数，true或false", name = "isNumeric")
    private Boolean isNumeric;

    /** 数字类型参数的单位，非数字类型可以为空 */
    @Column(name="unit")
    @ApiModelProperty(value = "数字类型参数的单位，非数字类型可以为空", name = "unit")
    private String unit;

    /** 是否是sku通用属性，true或false */
    @Column(name="generic")
    @ApiModelProperty(value = "是否是sku通用属性，true或false", name = "generic")
    private Boolean generic;

    /** 是否用于搜索过滤，true或false */
    @Column(name="searching")
    @ApiModelProperty(value = "是否用于搜索过滤，true或false", name = "searching")
    private Boolean searching;

    /** 数值类型参数，如果需要搜索，则添加分段间隔值，如CPU频率间隔：0.5-1.0 */
    @Column(name="segments")
    @ApiModelProperty(value = "数值类型参数，如果需要搜索，则添加分段间隔值，如CPU频率间隔：0.5-1.0", name = "segments")
    private String segments;

    private static final long serialVersionUID = 1L;
}